import { defAxios as request } from '@/utils/http'
export function useZoningApi() {
    return {
        refreshEleAdCache,
        deleteEleAd,
        updateEleAdStatus,
        saveEleAd,
        eleAdInfo
    }
  }

  
/**
 * 刷新区划缓存
 *
 * @returns Proxy
 */
function refreshEleAdCache(params = {}) {
    return request({
        url: '/eleAd/refreshEleAdCache',
        method: 'post',
        data: params
    })
}

/**
 * 删除区划
 *
 * @returns Proxy
 */
function deleteEleAd(params = {}) {
    return request({
        url: '/eleAd/deleteEleAd',
        method: 'post',
        data: params
    })
}


/**
 * 启用、停用区划
 *
 * @returns Proxy
 */
function updateEleAdStatus(params = {}) {
    return request({
        url: '/eleAd/updateEleAdStatus',
        method: 'post',
        data: params
    })
}

/**
 * 保存区划
 *
 * @returns Proxy
 */
function saveEleAd(params = {}) {
    return request({
        url: '/eleAd/saveEleAd',
        method: 'post',
        data: params
    })
}

/**
 * 获取区划详情信息
 *
 * @returns Proxy
 */
function eleAdInfo(params = {}) {
    return request({
        url: '/eleAd/eleAdInfo',
        method: 'post',
        data: params
    })
}

